Use window-full-width-p instead of comparing frame-width and
authorMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 05:46:49 +0000 (05:46 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 05:46:49 +0000 (05:46 +0000)
window-width.

lisp/dired.el

index 3639f44b5532e108dabbeb4f77d9e77ec26f78a7..bd160df7bda66c14feca45d51eacc040b847c226 100644 (file)
@@ -2547,12 +2547,12 @@ deletion of non-empty directories is allowed."
       (cond ;; if split-height-threshold is enabled, use the largest window
             ((and (> (window-height (setq w2 (get-largest-window)))
                     split-height-threshold)
-                 (= (frame-width) (window-width w2)))
+                 (window-full-width-p w2))
             (setq window w2))
            ;; if the least-recently-used window is big enough, use it
            ((and (> (window-height (setq w2 (get-lru-window)))
                     (* 2 window-min-height))
-                 (= (frame-width) (window-width w2)))
+                 (window-full-width-p w2))
             (setq window w2)))
       (save-excursion
        (set-buffer buf)